Skip to main content

Python model context example

This example illustrates the structure of a model context file for a Python model configured with snapshot restore of a single variable called state.

info

For a comprehensive reference on the model context schema, please read Model context schema.

Python model context file example
{
"language": "python3",
"restorations": {
"assembly": [{
"snapshot": {
"variables":["state"]
}
}]
}
}